package com.weds.edpf.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.mapper.UserLogMapper;
import com.weds.edpf.core.entity.UserLogEntity;

/**
 * @Author sxm
 * @Description UserLog管理
 * @Date 2020-06-03
 */
@Service
public class UserLogService extends BaseService {

	@Autowired
	private UserLogMapper userLogMapper;

	private Logger log = LogManager.getLogger();

	public int deleteByPrimaryKey(Integer xh) {
		return userLogMapper.deleteByPrimaryKey(xh);
	}

	public int insert(UserLogEntity record) {
		return userLogMapper.insert(record);
	}

	public int insertSelective(UserLogEntity record) {
		return userLogMapper.insertSelective(record);
	}

	public UserLogEntity selectByPrimaryKey(Integer xh) {
		return userLogMapper.selectByPrimaryKey(xh);
	}

	public int updateByPrimaryKeySelective(UserLogEntity record) {
		return userLogMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(UserLogEntity record) {
		return userLogMapper.updateByPrimaryKey(record);
	}

    	public List<UserLogEntity> selectListByEntity(UserLogEntity record) {
		return userLogMapper.selectListByEntity(record);
	}
	
	

        public int deleteBatchByKeys(List<UserLogEntity> list) {
        return userLogMapper.deleteBatchByKeys(list);
    }
    
    	public int insertBatch(List<UserLogEntity> list) {
		return userLogMapper.insertBatch(list);
	}
	}
